package com.goldman.base.common.sys.utils;

import org.modelmapper.ModelMapper;

/**
 * DTO转换工具
 */
public class ModelConvertor {
    private static final ModelMapper moderMapper = new ModelMapper();

    public static  <T> T convert(Object source, Class<T> clazz) {
        return moderMapper.map(source, clazz);
    }
}
